#pragma once
#include "BaseCommand.h"
#include <QImage>

class GraphicsDrawingItem;

class DrawCommand :public BaseCommand
{
public:
	DrawCommand(GraphicsDrawingItem* item, const QImage& oldImage, const QImage& newImage);
protected:
	void undo()override;
	void redo()override;
private:
	GraphicsDrawingItem* m_item = nullptr;
	QImage m_oldImage;
	QImage m_newImage;
};

